package org.omg.GIOP;

//
// Helper class for : ReplyHeader_1_1
//
// @author OpenORB Compiler
//
public class ReplyHeader_1_1Helper {
	//
	// Insert ReplyHeader_1_1 into an any
	// @param a an any
	// @param t ReplyHeader_1_1 value
	//
	public static void insert(org.omg.CORBA.Any a,
			org.omg.GIOP.ReplyHeader_1_0 t) {
		a.insert_Streamable(new org.omg.GIOP.ReplyHeader_1_0Holder(t));
	}

	//
	// Extract ReplyHeader_1_1 from an any
	// @param a an any
	// @return the extracted ReplyHeader_1_1 value
	//
	public static org.omg.GIOP.ReplyHeader_1_0 extract(org.omg.CORBA.Any a) {
		return read(a.create_input_stream());
	}

	//
	// Internal TypeCode value
	//
	private static org.omg.CORBA.TypeCode _tc = null;
	private static boolean _working = false;

	//
	// Return the ReplyHeader_1_1 TypeCode
	// @return a TypeCode
	//
	public static org.omg.CORBA.TypeCode type() {
		if (_tc == null) {
			synchronized (org.omg.CORBA.TypeCode.class) {
				if (_tc != null)
					return _tc;
				if (_working)
					return org.omg.CORBA.ORB.init().create_recursive_tc(id());
				_working = true;
				org.omg.CORBA.ORB orb = org.omg.CORBA.ORB.init();
				_tc = orb.create_alias_tc(id(), "ReplyHeader_1_1",
						org.omg.GIOP.ReplyHeader_1_0Helper.type());
				_working = false;
			}
		}
		return _tc;
	}

	//
	// Return the ReplyHeader_1_1 IDL ID
	// @return an ID
	//
	public static String id() {
		return _id;
	}

	private final static String _id = "IDL:omg.org/GIOP/ReplyHeader_1_1:1.0";

	//
	// Read ReplyHeader_1_1 from a marshalled stream
	// @param istream the input stream
	// @return the readed ReplyHeader_1_1 value
	//
	public static org.omg.GIOP.ReplyHeader_1_0 read(
			org.omg.CORBA.portable.InputStream istream) {
		return org.omg.GIOP.ReplyHeader_1_0Helper.read(istream);
	}

	//
	// Write ReplyHeader_1_1 into a marshalled stream
	// @param ostream the output stream
	// @param value ReplyHeader_1_1 value
	//
	public static void write(org.omg.CORBA.portable.OutputStream ostream,
			org.omg.GIOP.ReplyHeader_1_0 value) {
		org.omg.GIOP.ReplyHeader_1_0Helper.write(ostream, value);
	}

}
